package com.xuanyue.db.xuan.core.table.expr;

public enum ExprValueType {

	DATE(1),STRING(2),
	//NUMBER(3),
	
	TRANSATTR(3),NULL(4),BOOLEAN(5),ARRAY(6),
	INT(7),LONG(8),FLOAT(9),
	MAP(10),BYTEARRAY(11);
	
	private int type;
	private ExprValueType(int type) {
		this.type = type;
	}
	public boolean is(ExprValueType tar) {
		return this.type == tar.type;
	}
	public int getType() {
		return type;
	}
	
	public ExprValue getEV(Object value) {
		return new ExprValue(this,value);
	}
	
	
}
